<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>WindowEvent</title>
    <script>
        function OpenNewWindow() {
            window.open('https://www.example.com', '_blank', 'resizable,scrollbars,status');
        }

        window.onload = function() {
            var container = document.getElementById('container');
            container.addEventListener('click', OpenNewWindow);
        };
    </script>
</head>
<body>
<div id="container">Open New Window</div>
</body>
</html>